﻿using SqlSugar;

namespace WebApi.Model
{
    [SugarTable("t_Dictionary")]
    public class Dictionary
    {
        /// <summary>
        /// 主键id,自增
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; } = -1;
        /// <summary>
        /// 父节点Guid,为空则为父数据据
        /// </summary>
        public string ParentGuid { get; set; }

        /// <summary>
        /// 父节编号
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public string ParentCode { get; set; }

        /// <summary>
        /// 字典项编号，Company,Position,Goods
        /// </summary>
        public string DictItemCode { get; set; }
        /// <summary>
        /// 字典项数值
        /// </summary>
        public string DictItemValue { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string DictDescribe { get; set; }
        /// <summary>
        /// 有效：1，有效，0，无效
        /// </summary>
        public int Enable { get; set; }
        /// <summary>
        /// 唯一识别号Guid
        /// </summary>
        public string Guid { get; set; }
    }
}